function init() {
	_initHeader();
	
	var array = new Array();
	
	array.push("Application");
	array.push("Contact");
	array.push("Database");
	array.push("Device");
	array.push("File");
	array.push("GlobalPreference");
	array.push("Http");
	array.push("LocalNotification");
	array.push("Log");
	array.push("MemoryPreference");
	array.push("Multimedia");
	array.push("Navigation");
	array.push("Phone");
	array.push("PlatformUIComponent");
	array.push("Preference");
	array.push("PushNotification");
	array.push("Sensor");
	
	draw_list(array);
}

function setOnListClickHandler(idx) {
	switch(event.currentTarget.innerText.trim()) {
		case "Application" :
			navigate("nativeApplication");
		break;
		
		case "Contact" :
			navigate("nativeContact");
		break;
		
		case "Database" :
			navigate("nativeDatabase");
		break;
		
		case "Device" :
			navigate("nativeDevice");
		break;
		
		case "File" :
			navigate("nativeFile");
		break;
		
		case "GlobalPreference" :
			navigate("nativeGlobalPreference");
		break;
		
		case "Http" :
			navigate("nativeHttp");
		break;
		
		case "LocalNotification" :
			navigate("nativeLocalNotification");
		break;
		
		case "Log" :
			navigate("nativeLog");
		break;
		
		case "MemoryPreference" :
			navigate("nativeMemoryPreference");
		break;
		
		case "Multimedia" :
			navigate("nativeMultimedia");
		break;
		
		case "Navigation" :
			navigate("nativeNavigation");
		break;
		
		case "Phone" :
			navigate("nativePhone");
		break;
		
		case "PlatformUIComponent" :
			navigate("nativePlatformUIComponent");
		break;
		
		case "Preference" :
			navigate("nativePreference");
		break;
		
		case "PushNotification" :
			navigate("nativePushNotification");
		break;
		
		case "Sensor" :
			navigate("nativeSensor");
		break;
		
		default :
		break;
	}
}

function onScreenBack() {
	setPageResult();
}

function setPageParameters() {
	if(navigation.parameters) {
		var str = "";
		for( var name in navigation.parameters){
			str += name + " : " + navigation.parameters[name] + "\n";
		}
		
		alert("navigation.parameters : " + str);
	}
}

function setPageResult() {
	if(navigation.results) {
		var str = "";
		for( var name in navigation.results){
			str += name + " : " + navigation.results[name] + "\n";
		}
		
		alert("navigation.results : " + str);
		navigation.results = null;
	}
}